<%@page import="member.MemberVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>view.jsp</title>
<style>
</style>
<script type="text/javascript">
function getId(id){ return document.getElementById(id); }
function init(){ // window.onload=function(){}
	getId('btnList').onclick = function(){
		location.href='MyHome.jsp?inc_content=./guest/list.jsp';
	}
	getId('btnModify').onclick = function(){
		var memberid = getId('memberid').value;
		location.href='MyHome.jsp?inc_content=./guest/modify.jsp&memberid='+memberid;
	}
	getId('btnDelete').onclick=function(){
		var memberid = getId('memberid').value;
		location.href='MyHome.jsp?inc_content=./guest/delete.jsp&memberid='+memberid;
	}
}
</script>
</head>
<body>
<jsp:useBean id="bean" class="member.Login" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="bean"/> <!-- all setter  -->
<%
MemberVo m = bean.view();
if(m==null){
	out.print("<li>관련 정보가 삭제되었거나 없습니다.");
	out.print("<li>회원조회 메뉴를 클릭한후 작업하세요.");
}
%>


<h1>게시내용</h1>
<ul id='view_List'>
	<li>아이디: <output id='memberid'><%=m.getMemberid() %></output></li>
	<li>암호 : <%=m.getPwd() %></li>
	<li>이름: <%=m.getIrum() %></li>
	<li>생성일: <%=m.getHiredate() %></li>
	<li>주민번호: <%=m.getIden_number() %></li>
	<li>부서 : <%=m.getTeam() %></li>
	<li>직책: <%=m.getPosition() %></li>
	<li>이메일 : <%=m.getEmail() %></li>
	<li>주소 : <%=m.getAddress() %></li>
</ul>
<input type='button' value='목록' id='btnList'>
<input type='button' value='수정' id='btnModify'>
<input type='button' value='삭제' id='btnDelete'>

<script>init();</script>
</body>
</html>